<template>
  <div class="get-goods">
    <div class="list">
      <div class="ipt">
        <span>日</span>
        <span>周</span>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
        <input type="text" />
        <button>搜索</button>
      </div>
      <div class="one">
        <h5>商品来源：</h5>
        <span>全部</span>
        <span v-for="item in 2" :key="item">淘宝</span>
      </div>
      <div class="two">
        <h5>商品分类：</h5>
        <span>全部</span>
        <span v-for="item in 15" :key="item">淘宝</span>
      </div>
      <div class="three">
        <div class="commission-rate">
          <h5>佣金比例：</h5>
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="price-range">
          <h5>价格区间：</h5>
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="coupons">
          <h5>优惠券：</h5>
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
      </div>
      <div class="four">
        <h5>观众画像：</h5>
        <div class="gender">
          <h5>性别：</h5>
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="age">
          <h5>年龄：</h5>
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <div class="regional">
          <h5>地域：</h5>
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </div>
        <button>清空条件</button>
      </div>
    </div>
    <div class="li">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="推荐度" width="120">
        </el-table-column>
        <el-table-column prop="name" label="商品"> </el-table-column>
        <el-table-column prop="name" label="关联视频数" width="120">
        </el-table-column>
        <el-table-column prop="name" label="关联直播数" width="120">
        </el-table-column>
        <el-table-column prop="name" label="全网销量增量" width="120">
        </el-table-column>
        <el-table-column prop="name" label="全网销量" width="120">
        </el-table-column>
        <el-table-column prop="name" label="佣金比例" width="120">
        </el-table-column>
        <el-table-column prop="name" label="操作" width="120">
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  methods: {},
  data() {
    return {
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
      value: "",
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
};
</script>
<style lang="less" scoped>
.get-goods {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  font-size: 12px;
  line-height: 24px;
  .ipt {
    display: flex;
    align-items: center;
    span {
      width: 40px;
      height: 24px;
      text-align: center;
      background: #ccc;
      line-height: 24px;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 14px;
      margin-right: 10px;
    }
  }
  h5 {
    margin-right: 10px;
    font-size: 14px;
  }
  .one {
    display: flex;
    margin: 10px 0;
    span {
      width: 40px;
      background: #ccc;
      height: 24px;
      line-height: 24px;
      margin-right: 10px;
      text-align: center;
      border-radius: 5px;
    }
  }
  .two {
    display: flex;
    margin: 10px 0;
    span {
      width: 40px;
      background: #ccc;
      height: 24px;
      line-height: 24px;
      margin-right: 10px;
      text-align: center;
      border-radius: 5px;
    }
  }
  .three {
    display: flex;
    margin: 20px 0;
    div {
      display: flex;
      align-items: center;
      margin-right: 30px;
    }
  }
  .four {
    display: flex;
    margin: 20px 0;
    align-items: center;
    div {
      display: flex;
      align-items: center;
      margin-right: 30px;
    }
  }
}
</style>
